package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.QueryUserGoodsCollectionBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/25.
 */
@RestController
@Api(value="查询收藏的商品",tags={"查询收藏的商品"})
public class QueryUserGoodsCollectionController {

    @Autowired
    private QueryUserGoodsCollectionBiz queryUserGoodsCollectionBiz;
    @ApiOperation(value="查询收藏的商品")
    @PostMapping(value="/api/user/collection/goods/{pageNo}/{pageSize}")
    public Result queryUserGoodsCollection(@PathVariable(value="pageNo") int pageNo, @PathVariable(value="pageSize") int pageSize){
        return HandleResultUtil.querySuccessResult(queryUserGoodsCollectionBiz.queryUserGoodsCollection(pageNo,pageSize));
    }
}
